Amortised Memory Analysis Using the Depth of Data Structures
نویسنده
چکیده
The heap space analysis presented by Hofmann and Jost in their 2003POPL paper [2] finds linear space bounds for many functional programs.It uses an amortized analysis: assigning hypothetical amounts of free space(called potential) to data structures in proportion to their sizes using typeannotations. Constraints on these annotations in the type system ensurethat the total potential assigned to the input is an upper bound on thetotal memory required to satisfy all allocations.I will describe a related system for bounding the stack space require-ments which uses the depth of data structures, by allowing us to expresspotential in terms of maxima as well as sums. This is achieved by addingextra structure to typing contexts (inspired by O’Hearn’s bunched typing)to describe the form of the bounds. I will also describe the extra stepsthat must be taken to construct a typing during the analysis. References[1] Brian Campbell. Type-based amortized stack memory prediction. PhD thesis,University of Edinburgh, 2008.[2] Martin Hofmann and Steffen Jost. Static prediction of heap space usage forfirst-order functional programs. In POPL ’03: Proceedings of the 30th ACMSymposium on Principles of Programming Languages, New Orleans, 2003.ACM Press.
منابع مشابه
Amortised resource analysis for object-oriented programs
As software systems rise in size and complexity, the need for verifying some of their properties increases. One important property to be verified is the resource usage, i.e. how many resources the program will need for its execution, where resources include execution time, memory, power, etc. Resource usage analysis is important in many areas, in particular embedded systems and cloud computing....
متن کاملMultivariate Amortised Resource Analysis for Term Rewrite Systems
We study amortised resource analysis in the context of term rewrite systems. We introduce a novel amortised analysis based on the potential method. The method is represented in an inference system akin to a type system and gives rise to polynomial bounds on the innermost runtime complexity of the analysed rewrite system. The crucial feature of the inference system is the admittance of multivari...
متن کاملWhy Non-blocking Operations Should be Selfish
Non-blocking data structures are often analysed by giving an upper amortised running time bound in terms of the size of the data structure and a measure of contention. The two most commonly used measures are the point contention cP , the maximum number of processes active at any one time during an operation, and the interval contention cI , the number of operations overlapping with a given oper...
متن کاملEstimating scour below inverted siphon structures using stochastic and soft computing approaches
This paper uses nonlinear regression, Artificial Neural Network (ANN) and Genetic Programming (GP) approaches for predicting an important tangible issue i.e. scours dimensions downstream of inverted siphon structures. Dimensional analysis and nonlinear regression-based equations was proposed for estimation of maximum scour depth, location of the scour hole, location and height of the dune downs...
متن کاملSensitivity Analysis of Vibration Response of Railway Structures to Velocity of Moving Load and Various Depth of Elastic Foundation
Railway structures are one of the most important structures in transportation. So the lack of precise study of their dynamic behavior leads to irreparable damages. The significant factors contributing to the accurate analysis of the dynamic behavior of railways are the type of load and foundation used in it. In this study, an Euler-Bernoulli beam subjected to a moving load on a finite depth fou...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2009